module.exports = app => {
  const { STRING } = app.Sequelize; 
  
  const ProductImage = app.model.define('productImage',{
      url:STRING,         //图片
  })
  ProductImage.associate = function() {  
    app.model.ProductImage.belongsTo(app.model.ProductName,{
        foreignKey: 'name_id',
    })
}
  return ProductImage
}